﻿using System.Data.Linq.Mapping;

namespace Quiz.LINQData
{
    [Table(Name = "Ersteller")]
    class Ersteller
    {
        #region Member
            private string _ersteller;
            private int _erstellerID;
        #endregion


        #region Properties
            /// <summary>
            /// Der volle Name des Erstellers
            /// </summary>
            [Column(Name="Ersteller", Storage="_ersteller")]
            public string ErstellerFullname
            {
                get { return _ersteller; }
                set { _ersteller = value; }
            }

            /// <summary>
            /// Die ID des Erstellers (Primärschlüssel)
            /// </summary>
            [Column(IsPrimaryKey = true, IsDbGenerated = true, DbType = "INT NOT NULL IDENTITY", Name = "ErstellerID", Storage = "_erstellerID")]
            public int ErstellerID
            {
                get { return _erstellerID; }
                set { _erstellerID = value; }
            }
        #endregion
    }
}
